//TESH.scrollpos=0
//TESH.alwaysfold=0
function Trig_move_to_4g2Conditions takes nothing returns boolean
    return ((GetOwningPlayer(GetTriggerUnit()) != Player(0)) and (GetOwningPlayer(GetTriggerUnit()) != Player(1)) and (GetOwningPlayer(GetTriggerUnit()) != Player(2)) and (GetOwningPlayer(GetTriggerUnit()) != Player(3)))
endfunction

function Trig_move_to_4g2Actions takes nothing returns nothing
    local location p = GetRectCenter(gg_rct_turn_4_2)
    call IssuePointOrderByIdLoc(GetTriggerUnit(), 851986, p)
    set p = null
endfunction

//===========================================================================
function InitTrig_move_to_4g2 takes nothing returns nothing
    set gg_trg_move_to_4g2 = CreateTrigger()
#ifdef DEBUG
    call YDWESaveTriggerName(gg_trg_move_to_4g2, "move_to_4g2")
#endif
    call TriggerRegisterEnterRectSimple(gg_trg_move_to_4g2, gg_rct_turn_4_1)
    call TriggerAddCondition(gg_trg_move_to_4g2, Condition(function Trig_move_to_4g2Conditions))
    call TriggerAddAction(gg_trg_move_to_4g2, function Trig_move_to_4g2Actions)
endfunction

